import request from '@/utils/request'
// 获取首页列表
export const getRead = (nub,time) =>{
  return request.get('/find/bymonth/'+ nub +'/'+time)
} 
export const getspecial =() =>{
  return request.get('/banner/list/4')
}
// 获取小记数据
export const getNotes =(id)=>{
  return request.get('/diary/square/more/'+id)
}
// 获取热榜数据
export const getHot = (id)=>{
  return request.get('/find/rank'+id)
}

// 热门作者数据
export const getAuthor= ()=>{
  return request.get('/author/hot')
}
// 获取长篇(连载)的数据
export const getLong=()=>{
  return request.get('/find/serial/byyear/2022')
}
// 搜索的接口
export const getSearch = (categoryName,keyword,page) =>{
   return request.get('/search/'+categoryName+'/'+keyword+'/'+page)
}